#import <Foundation/Foundation.h>
#import <stdbool.h>
#import <stdio.h>
#import <stdlib.h>

struct Books {
  NSString *title;
  NSString *author;
  NSString *subject;
  int book_id;
};

@interface SampleClass : NSObject
- (void) printBook: (struct Books) book;
@end

@implementation SampleClass
- (void) printBook: (struct Books) book {
NSLog(@"Book title: %@", book.title);
NSLog(@"Book author: %@", book.author);
NSLog(@"Book subject: %@", book.subject);
NSLog(@"Book book_id: %d", book.book_id);
}
@end

int main()
{
  NSAutoreleasePool *pool;
  pool = [[NSAutoreleasePool alloc] init];
  // write code below
  struct Books book1;
  struct Books book2;
  book1.title = @"Objective-c programming";
  book1.author = @"Yiibai";
  book1.subject = @"fucker fucker";
  book1.book_id = 99999;

  book2.title = @"Objective-c programming";
  book2.author = @"Yiibai";
  book2.subject = @"fucker fucker";
  book2.book_id = 88888;

  SampleClass *sample = [[SampleClass alloc] init];
  [sample printBook: book1];
  [sample printBook: book2];

  


  // don't write code now
  RELEASE(pool);
  return 0;
}

